<div class="w-box">
	<div class="w-box-content cnt_a">
	<h1 class="page-header page-header-a"><?php echo $text_heading; ?></h1>
	<?php if($buyerguides) { ?>
		<div class="tabbable tabbable-bordered tabbable-buyer-guide">
		<ul class="nav nav-tabs">
		<?php $count = 0; ?>
		<?php foreach ($buyerguides as $key => $val) {
			$count++;
			?>
			<li <?php if($count == 1) {echo 'class="active"';} ?>><a
				data-toggle="tab" href="#tb1_<?php echo $count; ?>"><?php echo $val['Title']; ?></a>
			</li>
			<?php } ?>
		</ul>
		<div class="tab-content">
			<?php $count = 0; ?> <?php foreach ($buyerguides as $key => $val) {
			$count++;
			?>
		<div id="tb1_<?php echo $count; ?>"
			class="tab-pane <?php if($count == 1) {echo 'active';}?>">
		<p><?php echo $val['Title']; ?></p>
		<p><?php echo html_entity_decode($val['PostContent'] , ENT_QUOTES, 'UTF-8'); ?></p>
		</div>
			<?php } ?>
		</div>
		</div>
	<?php } ?>
	</div>
</div>
